Optimal. Leaf size=26 \[ \frac {1}{2} \sqrt {-1+x} x \sqrt {1+x}+\frac {1}{2} \cosh ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {92, 54}
\begin {gather*} \frac {1}{2} \sqrt {x-1} \sqrt {x+1} x+\frac {1}{2} \cosh ^{-1}(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 54
Rule 92
Rubi steps
\begin {align*} \int \frac {x^2}{\sqrt {-1+x} \sqrt {1+x}} \, dx &=\frac {1}{2} \sqrt {-1+x} x \sqrt {1+x}+\frac {1}{2} \int \frac {1}{\sqrt {-1+x} \sqrt {1+x}} \, dx\\ &=\frac {1}{2} \sqrt {-1+x} x \sqrt {1+x}+\frac {1}{2} \cosh ^{-1}(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 34, normalized size = 1.31 \begin {gather*} \frac {1}{2} \sqrt {-1+x} x \sqrt {1+x}+\tanh ^{-1}\left (\sqrt {\frac {-1+x}{1+x}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(39\) vs.
\(2(18)=36\).
time = 0.09, size = 40, normalized size = 1.54
method | result | size |
default | \(\frac {\sqrt {-1+x}\, \sqrt {1+x}\, \left (x \sqrt {x^{2}-1}+\ln \left (x +\sqrt {x^{2}-1}\right )\right )}{2 \sqrt {x^{2}-1}}\) | \(40\) |
risch | \(\frac {x \sqrt {-1+x}\, \sqrt {1+x}}{2}+\frac {\ln \left (x +\sqrt {x^{2}-1}\right ) \sqrt {\left (1+x \right ) \left (-1+x \right )}}{2 \sqrt {-1+x}\, \sqrt {1+x}}\) | \(46\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 27, normalized size = 1.04 \begin {gather*} \frac {1}{2} \, \sqrt {x^{2} - 1} x + \frac {1}{2} \, \log \left (2 \, x + 2 \, \sqrt {x^{2} - 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.49, size = 32, normalized size = 1.23 \begin {gather*} \frac {1}{2} \, \sqrt {x + 1} \sqrt {x - 1} x - \frac {1}{2} \, \log \left (\sqrt {x + 1} \sqrt {x - 1} - x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.31, size = 30, normalized size = 1.15 \begin {gather*} \frac {1}{2} \, \sqrt {x + 1} \sqrt {x - 1} x - \log \left (\sqrt {x + 1} - \sqrt {x - 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 7.51, size = 194, normalized size = 7.46 \begin {gather*} 2\,\mathrm {atanh}\left (\frac {\sqrt {x-1}-\mathrm {i}}{\sqrt {x+1}-1}\right )-\frac {\frac {14\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^3}{{\left (\sqrt {x+1}-1\right )}^3}+\frac {14\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^5}{{\left (\sqrt {x+1}-1\right )}^5}+\frac {2\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^7}{{\left (\sqrt {x+1}-1\right )}^7}+\frac {2\,\left (\sqrt {x-1}-\mathrm {i}\right )}{\sqrt {x+1}-1}}{1+\frac {6\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^4}{{\left (\sqrt {x+1}-1\right )}^4}-\frac {4\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^6}{{\left (\sqrt {x+1}-1\right )}^6}+\frac {{\left (\sqrt {x-1}-\mathrm {i}\right )}^8}{{\left (\sqrt {x+1}-1\right )}^8}-\frac {4\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^2}{{\left (\sqrt {x+1}-1\right )}^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________